<div class="answer_content">
    <div class="no_border">
    	
    	{if Phpfox::getUserId()==4}
        	<div class="question_content">
                <div id="addnewanwser">
                    <a href="/index.php?do=/answer/question/add/"><img src="/theme/frontend/nebula/style/nebula/image/layout/section_menu_add.png" alt="" class="v_middle">{phrase var='answer.point_ask_a_question'}</a>  
                </div> 
            </div>
        {/if} 
        <div class="question_content">
        
        <!--<br />
		<div class="result">{phrase var='answer.whatresult'}</div>
              <h1>{if $aQuestion.is_ab==0}A - {$aQuestion.title}{/if}{if $aQuestion.is_ab==1}B - {$aQuestion.title2}{/if}</h1>
        </div>-->
        
         <div class="clear">

        </div>
        <div class="question_image">
        	<img src='/file/pic/answer/{$aQuestion.question_image}' border='0' width='600' />
        </div><br />
		{if Phpfox::getUserId()==4}
        <div class="adminedit"><a href="/index.php?do=/answer/question/add/id_{$aQuestion.id}" target="_blank">Edit</a></div>
        {/if}
        <div class="user">
            <div class="image"><a href="{url link='answer.'.$aQuestion.user_name}">{img title=$aQuestion.full_name path='core.url_user' file=$aQuestion.image max_width='50' max_height='50' is_page_image=true  suffix='_50_square'}</a>
            </div>
        </div>
        		
        <div class="item_bar">
            {if Phpfox::getUserParam('answer.can_edit_all_question') || (Phpfox::getUserParam('answer.can_edit_own_question') && ($aQuestion.user_id == Phpfox::getUserId()))}
            <div class="item_bar_action_holder">
                <a href="#" class="item_bar_action"><span>Actions</span></a>
                <ul>
                    <li><a href="{url link='answer.question.add' id=$aQuestion.id}">{phrase var='answer.edit'}</a></li>
                    <li class="item_delete"><a href="{url link='answer' delete=$aQuestion.id}" class="sJsConfirm" title="{phrase var='answer.delete_question'}">{phrase var='answer.delete'}</a></li>
                    <!-- {if Phpfox::getUserParam('answer.can_edit_all_question') }
                   <li class="featured_status"><a href="#" onclick="$.ajaxCall('answer.upgradeFeatured', 'id={$aQuestion.id}', 'GET'); return false;">
                        {if $aQuestion.featured }
                        {phrase var='answer.unfeatured'}
                        {else}
                        {phrase var='answer.featured'}
                        {/if}
                    </a> </li>
                    <li class="closed_status"><a href="#" onclick="$.ajaxCall('answer.closed', 'id={$aQuestion.id}', 'GET'); return false;">
                        {if $aQuestion.status == 2 }
                        {phrase var='answer.open'}
                        {else}
                        {phrase var='answer.closed'}
                        {/if}
                    </a> </li>
                    {/if}-->
                </ul>
            </div>

            {/if}
            <!--<div class="status_position">
                <ul>
                    <li >
                         <span class="status">
                                {if $aQuestion.featured }
                                <div class="featured">{phrase var='answer.featured'}</div>
                                {else}
                                    {if $aQuestion.status == 1 }
                                        <div  class="resolved">{phrase var='answer.resolved'}</div>
                                    {/if}
                                    {if $aQuestion.status == 2 }
                                        <div  class="closed"> {phrase var='answer.closed'} </div>
                                    {/if}
                                    {if $aQuestion.status == 0 }
                                        <div  class="open"> {phrase var='answer.open'} </div>
                                    {/if}
                                {/if}
                         </span>
                    </li>
                    <li>{phrase var='answer.by'} <a href="{url link=$aQuestion.user_name}"> {$aQuestion.full_name}</a></li>
                    <li>({$aQuestion.label} - {$aQuestion.point} {phrase var='answer.points'})</li>

                </ul>
            </div>-->
        </div>
        <div class="detail">
            <div class="top">
                
                <!--<div class="question_bottom" >
                    <ul >
                        <li>{phrase var='answer.category'}: <a class="category" href="{url link='answer.question.category.'$aQuestion.category_id}"> {$aQuestion.category_name} </a> &nbsp;&nbsp;</li>
                        <li>{phrase var='answer.view'}: {$aQuestion.view}&nbsp;&nbsp;</li>
                        <li>{phrase var='answer.answers'}: {$aQuestion.answer}&nbsp;&nbsp;</li>
                    </ul>
                    <div class="clear"></div>
                </div>-->
                <div></div>
                {if !empty($aTags)}
                <div class="tag_link">{phrase var='answer.tag'}:
                    {foreach from=$aTags item=Val name=iKey}
                    {if $phpfox.iteration.iKey != 1}, {/if}
                    <a href="{url link='answer.question' tag=$Val}" >{$Val}</a>

                    {/foreach}
                </div>
                {/if}
            </div>
           
        </div>

        <div class="clear"></div>
    </div>


<!--</div>

{if isset($aCorrectAnswer.user_name)}
<div class="answer_detail" class="correct_answer">
    <div class="title">{phrase var='answer.correct'}</div>
    <div class="info">
        <div class="user">
            <div class="image"><a href="{url link=$aCorrectAnswer.user_name}">{img title=$aCorrectAnswer.full_name path='core.url_user' file=$aCorrectAnswer.image max_width='50' max_height='50' is_page_image=true  suffix='_50_square'}</a></div>

        </div>
        <div class="content">
            <div class="top">
                <div>{$aCorrectAnswer.detail}</div>

            </div>
            <div class="bottom">
                <ul >
                    <li id="voteup_{$aCorrectAnswer.id}">
                        <a href="#" onclick="$.ajaxCall('answer.vote','aVal={$aQuestion.id},{$aCorrectAnswer.id},1;' ); return false;">
                            {if $aCorrectAnswer.checkup == 0}
                            <img src="{param var='core.path'}module/answer/static/image/voteupde.gif">
                            {else}
                            <img src="{param var='core.path'}module/answer/static/image/voteup.gif">
                            {/if}
                        </a>
                        <span >{$aCorrectAnswer.voteup}</span>
                    </li>
                    <li id="votedown_{$aCorrectAnswer.id}">
                        <a href="#" onclick="$.ajaxCall('answer.vote','aVal={$aQuestion.id},{$aCorrectAnswer.id},0;' ); return false;">
                            {if $aCorrectAnswer.checkdown == 0}
                            <img src="{param var='core.path'}module/answer/static/image/votedownde.gif">
                            {else}
                            <img src="{param var='core.path'}module/answer/static/image/votedown.gif">
                            {/if}
                        </a>
                        <span >{$aCorrectAnswer.votedown}</span>
                    </li>
                    <li>{phrase var='answer.by'} <a href="{url link=$aCorrectAnswer.user_name}"> {$aCorrectAnswer.full_name}</a></li>
                    <li>({$aCorrectAnswer.label} - {$aCorrectAnswer.point} {phrase var='answer.points'}),</li>
                    <li> {$aCorrectAnswer.created|convert_time:'core.global_update_time'}</li>
                </ul>
                <div class="clear"></div>
                <div>
                    <ul><li>
                        {if Phpfox::getUserParam('answer.can_edit_all_question') || (Phpfox::getUserParam('answer.can_edit_own_question') && ($aQuestion.user_id == Phpfox::getUserId()))}
                        <a href="{url link='answer.question.view' uncorrect=$aCorrectAnswer.id}"><img src="{param var='core.path'}module/answer/static/image/correct.gif">
                            {phrase var='answer.correct'}
                        </a>
                        {/if}
                    </li></ul>
                </div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    {/if}
</div>-->
<!--<div class="answer_detail">
    <div class="title">{phrase var='answer.all_answer'} ({$total})
        <div class="filter">
            <span>{phrase var='answer.sort_by'}:</span>
            <select class = "selectSort">
                <option value="{php}Phpfox::getLib('url')->makeUrl('current');{/php}sort_created">{phrase var='answer.date'}</option>
                <option value="{php}Phpfox::getLib('url')->makeUrl('current');{/php}sort_vote" {$sSelect}>{phrase var='answer.voted'}</option>
            </select>
        </div>
    </div>
    {foreach from=$aAnswers item=aItem name=answer}
    <div class="info">
        <div class="user">
            <div class="image"><a href="{url link=$aItem.user_name}">{img title=$aItem.full_name path='core.url_user' file=$aItem.image max_width='50' max_height='50'  suffix='_50_square' is_page_image=true}</a></div>

        </div>
        <div class="content">
            <div class="top">
                <div>{$aItem.detail}</div>

            </div>
            <div class="bottom">
                <ul >
                    <li id="voteup_{$aItem.id}">
                        <a href="#" onclick="$.ajaxCall('answer.vote','aVal={$aQuestion.id},{$aItem.id},1;' ); return false;">
                            {if $aItem.checkup == 0}
                            <img src="{param var='core.path'}module/answer/static/image/voteupde.gif">
                            {else}
                            <img src="{param var='core.path'}module/answer/static/image/voteup.gif">
                            {/if}
                        </a>
                        <span >{$aItem.voteup}</span>
                    </li>
                    <li id="votedown_{$aItem.id}">
                        <a href="#" onclick="$.ajaxCall('answer.vote','aVal={$aQuestion.id},{$aItem.id},0;' ); return false;">
                            {if $aItem.checkdown == 0}
                            <img src="{param var='core.path'}module/answer/static/image/votedownde.gif">
                            {else}
                            <img src="{param var='core.path'}module/answer/static/image/votedown.gif">
                            {/if}
                        </a>
                        <span >{$aItem.votedown}</span>
                    </li>
                    <li>{phrase var='answer.by'} <a href="{url link=$aItem.user_name}"> {$aItem.full_name}</a></li>
                    <li>({$aItem.label} - {$aItem.point} {phrase var='answer.points'}),</li>
                    <li> {$aItem.created|convert_time:'core.global_update_time'}</li>
                </ul>
                <div class="clear"></div>
                <div>
                    {if Phpfox::getUserParam('answer.can_edit_all_question') || (Phpfox::getUserParam('answer.can_edit_own_question') && ($aQuestion.user_id == Phpfox::getUserId()))}
                    <ul><li>

                        <a href="{url link='answer.question.view' correct=$aItem.id}"> <img src="{param var='core.path'}module/answer/static/image/correctde.gif">
                            {phrase var='answer.correct'}
                        </a>

                    </li>
                        {if Phpfox::getUserParam('answer.can_edit_all_question')}
                        <li>
                            <a href="{url link='answer.question.view' delete-answer=$aItem.id}"> <img src="{param var='core.path'}theme/adminpanel/default/style/default/image/misc/cross.png">
                                {phrase var='answer.delete_this_answer'}
                            </a>
                        </li>
                        {/if}
                    </ul>
                    {/if}
                </div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    {foreachelse}
    <div class="info">
        {phrase var='answer.there_are_no_answers'}
    </div>

    {/foreach}
</div>
{pager}-->
<!--{if $aQuestion.status != 2 }
<h3  id="getAnswer"><b>{phrase var='answer.your_answer'}</b></h3>
<form action="{url link='answer.question.view'}" method="post">
    <input type="hidden" name="val[question_id]" value="{$aQuestion.id}">
    <div class="table">
        <div class="table_right">
            {editor id='detail' rows='6'}
        </div>
    </div>
    <div class="table_clear">
        <input type="submit" value="{phrase var='answer.submit'}" class="button" name="add_category">
    </div>
</form>
{/if}-->
</div>